/**
 * Created by Wayne
 * user Model
 */


const  mongoose = require('mongoose'),
    shortid = require('shortid'),
    Schema = mongoose.Schema;

let devicesSchema = new Schema({
    _id: {
        type: String,
        'default': shortid.generate
    },
    name:String,//设备名称
    udid:String,//设备udid
    account:String,//设备所属开发者账号
    profile: String,//设备描述文件名称
    register_time:{
        type: Date,
        "default": Date.now
    }
});

let devices = mongoose.model('devices', devicesSchema);

module.exports = devices;
